﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class BUSLoaiNVL
    {
        public static DataTable getAll()
        {
            return DAOLoaiNV.getAll();
        }

        public static int add(DTOLoaiNVL loai)
        {
            return DAOLoaiNV.add(loai);
        }

        public static int edit(DTOLoaiNVL loai,string old_maloai)
        {
            return DAOLoaiNV.edit(loai,old_maloai);
        }

        public static int del(DTOLoaiNVL loai)
        {
            return DAOLoaiNV.del(loai);
        }

        public static bool checkDuplicate(DTOLoaiNVL loai,string old_maloai)
        {
            return DAOLoaiNV.checkDuplicate(loai,old_maloai);
        }
    }
}
